package src.com.zzxy.spring34.controller;

import src.com.zzxy.spring34.service.impl.StudentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

@Controller
@Component
public class StudentController {
    @Autowired
    private StudentServiceImpl studentService;


//    public IStudentService getStudentService() {
//        return studentService;
//    }
//
//    public void setStudentService(StudentServiceImpl studentService) {
//        this.studentService = studentService;
//    }

    public void addStudent(String username,String password) {
        studentService.addStudent(username,password);
    }
}
